import java.math.BigDecimal;
import java.math.RoundingMode;

import com.github.icloudpay.crm.core.entity.PersonalAccount;
import com.github.wxiaoqi.security.common.util.MD5;

public class test {
	public static void main(String[] args) {
//		String a = "15205442200";
//		String mobileStart = a.substring(0, 3);
//		String mobileEnd = a.substring(7, 11);
//		System.out.println(mobileStart);
//		System.out.println(mobileEnd);
		
//		BigDecimal a = BigDecimal.ZERO;
//		System.out.println(a.toString());
//		
//		BigDecimal balance = new BigDecimal("0.15");
//		System.out.println(balance.toString());
//		String checksum = MD5.sign(balance.toString(), "BSV00123", "utf-8");
//		System.out.println(checksum);
//		
//		PersonalAccount personalAccount = new PersonalAccount();
//		personalAccount.setAccBalance(BigDecimal.ZERO);
//		System.out.println(personalAccount.toString());
		
		
		BigDecimal balance = new BigDecimal("10.000");
		balance =balance.setScale(2, RoundingMode.HALF_UP);//保留两位小数
		System.out.println(balance.toString());
		
		
		
	}
}
